package com.imooc.distributedemo.jmm;

public class TicketWindowRunnable implements Runnable {

    private static final int MAX = 100;

    private int index =1;

    @Override
    public void run() {
        while (index < MAX){
            System.out.println(Thread.currentThread().getName() + " 的号码是：" + (index++));
        }
    }
}
